@media screen and (min-width:1200px) {
  html {
    font-size: 20px;
  }
}

@media screen and (min-width:800px) and (max-width:1200px) {
  html {
    font-size: 16px;
  }
}

@media screen and (max-width:800px) {
  html {
    font-size: 12px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 60rem;
  position: relative;
  font-family: '楷体';
}

div button {
  width: 10rem;
  height: 2rem;
  margin-left: 4rem;
  margin-top: 3rem;
  text-align: center;
  line-height: 2rem;
  color: white;
  border: none;
  background-color: dodgerblue;
  cursor: pointer;
  transition: all .5s;
}

div button:hover {
  opacity: 0.8;
}

p {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .6);
  position: relative;
  position: absolute;
  top: 0;
  left: 0;
}

#closeIcon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

#closeIcon:hover {
  color: red;
}

.float {
  width: 30rem;
  height: 34rem;
  background-color: white;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 999;
  padding: 1rem;
  border-style: groove;
  box-shadow: 1rem 1rem 1rem black;
  border: 0;
  border-radius: 6px;
}

.float h2 {
  width: 100%;
  height: 3rem;
  text-align: center;
  line-height: 3rem;
}

.float hr {
  margin-bottom: 1rem;
  height: 0.15rem;
  background-color: #409EFF;
}

.float label {
  display: block;
}

.float .checkbox {
  font-size: 1rem;
  margin: 1rem 0 0 1rem;
  float: left;
}

.float input {
  display: block;
  width: 100%;
  height: 3rem;
  padding: 1rem;
  margin: 1rem 0;
}

.float #checkbox {
  width: 1rem;
  height: 1rem;
  float: left;
  margin-bottom: 0 !important;
}

.float #area {
  width: 100%;
  height: 2rem;
  border: 0;
}

.float button {
  width: 50%;
  height: 3rem;
  margin: 0;
  margin-top: 1rem;
  float: left;
  border: 0;
}

.float b {
  display: block;
  float: left;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: normal;
  color: #606266;
}

.float .closeBtn {
  background-color: red !important;
}